Skip to content

查询爱心餐品牌信息

商户根据品牌ID查询爱心餐品牌的捐赠与供餐信息。

请求参数类型描述
brand_idstring品牌ID
php
$instance->v3->lovefeast->brands->_brand_id_->getAsync([
  'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/lovefeast/brands/{brand_id}')->getAsync([
  'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/lovefeast/brands/{brand_id}']->getAsync([
  'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->lovefeast->brands->_brand_id_->get([
  'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/lovefeast/brands/{brand_id}')->get([
  'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/lovefeast/brands/{brand_id}']->get([
  'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
donate_countnumber捐赠数量
consume_countnumber供餐数量

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory